new Vue({
    el:'#inputCases',
    data:{
        show:false,
        result:'',
    },
    methods: {
      goto(){
       if(this.result==1){
         window.location.href="patientInfo.html"
       }
       else if(this.result==2){
         window.location.href="sepsisInfo.html"
       }
       else if(this.result==3){
        window.location.href="SRISInfo.html"
      }
      },
      gotoDia(){
        if(localStorage.getItem("gofist")=='1'){
          window.location.href="diagnosticInfo.html" 
        }
        else{
          this.$toast('请依次填写')
        }
      },
      gotoPer(){
        if(localStorage.getItem("secondIndex")==2){
          window.location.href="perHistory.html"
        }
        else{
          this.$toast('请依次填写')
        }
      },
      gotoVit(){
        if(localStorage.getItem("threeIndex")==3){
          window.location.href="vitalSigns.HTML"
        }
        else{
          this.$toast('请依次填写')
        }
      },
      gotoEff(){
        if(localStorage.getItem("fourIndex")==4){
          window.location.href="effect.html"
        }
        else{
          this.$toast('请依次填写')
        }
      }
    }
    ,mounted() {
      if(localStorage.getItem("showBtn")==5){
        this.show=true;
      }
        if(this.show==false){
          this.$refs.inputCnt.style.marginBottom=2+"rem"
          console.log('11')
        }
        var url = window.location.search; //获取url中"?"符后的字串  
            console.log(url)
            if (url.indexOf("?") != -1) {
                this.result = url.substr(url.indexOf("=") + 1);
                console.log(this.result);
            }
    },
})